package org.csu.newpetstoreback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.util.DigestUtils;

@Data
@TableName("signon")
public class SignOn {
    @TableId(value = "username", type= IdType.INPUT)
    private String username;

//    private String md5Password = DigestUtils.md5DigestAsHex(getPassword().getBytes());

    private String password;

}
